package com.yycwxt.modules.admin.shopcompare;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class ShopCompareService {

    private ShopCompareMapper mapper;

    @Autowired
    public ShopCompareService(ShopCompareMapper mapper) {
        this.mapper = mapper;
    }

    public List<Map<String, Object>> shopcompare(String[] shop) {
        Map<String, Object> map = new HashMap<>();
        map.put("shop", shop);
        return mapper.shopcompare(map);
    }
}
